package com.engine.core.dao;

import com.engine.core.domain.GenTable;
import com.engine.core.domain.GenTableColumn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CodeResourceMapper {

    GenTableColumn getPkColumn(@Param("tableName") String tableName);

    List<GenTableColumn> getTableColumns(@Param("tableName") String tableName);

    int insertTableResource(@Param("tableName") String tableName);


    int insertTableColumn(@Param("tableName") String tableName,@Param("resId") int resId);

    int deleteByName(@Param("tableName") String tableName);

    int getIdByName(@Param("tableName") String tableName);

    GenTable getGenTable(@Param("id") int id);

    List<String> selectRefresh();
}
